<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'showroom.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<FORM name=myForm method=post>
		<div id="content_right">
			<TABLE class=table cellSpacing=1>
				<TBODY>
					<TR class=table_header>
						<TD vAlign=center align=left>
							机房ID
						</TD>
						<TD vAlign=center align=left>
							机房名称
						</TD>
						<TD vAlign=center align=left>
							所属部门编号
						</TD>
						<TD vAlign=center align=left>
							负责人编号
						</TD>
						<TD vAlign=center align=left>
							地址
						</TD>

						<TD vAlign=center align=left>
							备注
						</TD>
					</TR>
					<s:iterator value="room" var="lir" status="s">
						<tr class="row${st.index%2+1}">

							<td valign="middle" align="left">
								<s:property value="#lir.ccId" />
							</td>
							<td valign="middle" align="left">
								<s:property value="#lir.ccName" />
							</td>
							<td valign="middle" align="left">
								<s:property value="#lir.employee.empId" />
							</td>
							<td valign="middle" align="left">
								<s:property value="#lir.department.deptId" />
							</td>

							<td valign="middle" align="left">
								<s:property value="#lir.ccAddr" />
							</td>
							<td valign="middle" align="left">
								<s:property value="#lir.ccRemark" />
							</td>


						</tr>
					</s:iterator>

					</TR>

				</TBODY>
			</TABLE>
            <p align=right style="padding-right: 30px">
							<input type="button" class="button" value="返回 &raquo"
								onclick="location='roomList.action'">
			</p>

</div>
		</FORM>
	</body>
</html>
